\if@imp

    % http://www.texample.net/tikz/examples/boxes-with-text-and-math/
    % http://snouffy.free.fr/blog-en/index.php/post/2010/01/30/Nice-boxes-for-your-theorems-with-tikz
    
%     \def\propCp{{propCpt}}
%     \def\exCp{{exCpt}}
    \RequirePackage{boiboites}
    \newcounter{propCpt}[section]
    \renewcommand{\thepropCpt}{\thesection.\arabic{propCpt}}
    \newcounter{exCpt}[section]
    \renewcommand{\theexCpt}{\thesection.\arabic{exCpt}}
    \newcounter{exoCpt}
    
    \newboxedtheorem[titleboxcolor=orange!35, boxcolor=orange!35, background=red!5]
        {prop}{Propriété}{propCpt}
    \newboxedtheorem[titleboxcolor=orange!35, boxcolor=orange!35, background=red!5]
        {defi}{Définition}{propCpt}
    \newboxedtheorem[boxcolor=orange, background=blue!5, titlebackground=blue!20,
titleboxcolor = black]
        {thm}{Théorème}{propCpt}
    \newboxedtheorem[titleboxcolor=red!25, boxcolor=red!25, background=red!15]
        {lemme}{Lemme}{propCpt}
    \newboxedtheorem[titleboxcolor=red!20, boxcolor=red!20, background=red!5]
        {coro}{Corollaire}{propCpt}
    
    \newboxedtheorem[boxcolor=black!20]{ex}{Exemple}{exCpt}
    \newboxedtheorem[boxcolor=black!20,background=blue!25,boxcolor=magenta,titleboxcolor=magenta!40]
    {exo}{Exercice}{exoCpt}
    
    \newboxedtheorem[titleboxcolor=magenta!25,boxcolor=magenta!25,background=blue!5]
        {preuve}{Démonstration}{}

\else 

    \RequirePackage[thmmarks]{ntheorem}
    
    \theoremstyle{marginbreak}
    \theorempostwork{\bigskip}
    \theoremindent0.5cm
    \newtheorem{prop}{Propriété}[subsection]
    \newtheorem{defi}[prop]{Définition}
    \newtheorem{thm}[prop]{Théorème}
    \newtheorem{lemme}[prop]{Lemme}
    \newtheorem{coro}[prop]{Corollaire}
    
    \theoremheaderfont{\sc}
    \theoremseparator{:}
    \theoremstyle{break}
    \theorembodyfont{\normalfont}
    \theoremindent0cm
    \theorempostwork{\hrule\bigskip}
    \newtheorem{ex}{Ex}
    
    \newtheorem{exo}[prop]{Exercice}
    
    
    \theoremstyle{nonumberplain}
    \theoremsymbol{\rule{1.5ex}{1.5ex}}%\ensuremath{\Box}}%\rule{1ex}{1ex}}
    %\theoremindent0cm
    \newtheorem{preuve}{Démonstration}

\fi

\newenvironment{note}{Note : \begin{itshape}}{\end{itshape}}